package com.only4play.template.autoconfigure;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 自动加载类
 *
 * @author zlm
 * @date 2024/1/19
 */

@Configuration
@ConditionalOnProperty(prefix = "op.template",havingValue = "true",name = "enabled",matchIfMissing = true)
@EnableJpaRepositories(basePackages = {"com.only4play.template"})
@EntityScan(basePackages = {"com.only4play.template.domain"})
@ComponentScan(basePackages = "com.only4play.template")
public class TemplateAutoConfigure {



}
